Skip to content

Conversation

@gregfromstl
Copy link
Contributor

@gregfromstl gregfromstl commented May 6, 2025


PR-Codex overview

This PR adds a new feature to the thirdweb library that allows users to retrieve supported chains for the Universal Bridge. It introduces a new chains function and a corresponding Chain interface, enhancing the functionality related to blockchain support.

Detailed summary

  • Added export of chains from ./Chains.js.
  • Introduced Chain interface in ./types/Chain.js to represent blockchain details.
  • Implemented chains function in ./Chains.ts to fetch supported chains.
  • Created tests for the chains function in Chains.test.ts.
  • Updated documentation to include usage examples and details about the chains function.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@gregfromstl gregfromstl requested review from a team as code owners May 6, 2025 06:34
@linear
Copy link

linear bot commented May 6, 2025

@changeset-bot
Copy link

changeset-bot bot commented May 6, 2025

🦋 Changeset detected

Latest commit: c61679b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
thirdweb Minor
@thirdweb-dev/wagmi-adapter Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented May 6, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 6, 2025 6:34am
login ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 6, 2025 6:34am
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 6, 2025 6:34am
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 6, 2025 6:34am
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 6, 2025 6:34am

@graphite-app
Copy link
Contributor

graphite-app bot commented May 6, 2025

How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge-queue - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

@github-actions github-actions bot added packages SDK Involves changes to the thirdweb SDK labels May 6, 2025
@codecov
Copy link

codecov bot commented May 6, 2025

Codecov Report

Attention: Patch coverage is 73.33333% with 4 lines in your changes missing coverage. Please review.

Project coverage is 55.03%. Comparing base (6dd2b09) to head (c61679b).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
packages/thirdweb/src/bridge/Chains.ts 71.42% 4 Missing ⚠️

❌ Your patch status has failed because the patch coverage (73.33%) is below the target coverage (80.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6956   +/-   ##
=======================================
  Coverage   55.03%   55.03%           
=======================================
  Files         897      898    +1     
  Lines       57327    57342   +15     
  Branches     3964     3966    +2     
=======================================
+ Hits        31551    31561   +10     
- Misses      25680    25684    +4     
- Partials       96       97    +1     
Flag Coverage Δ
packages 55.03% <73.33%> (+<0.01%) ⬆️
Files with missing lines Coverage Δ
packages/thirdweb/src/bridge/index.ts 100.00% <100.00%> (ø)
packages/thirdweb/src/bridge/Chains.ts 71.42% <71.42%> (ø)

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@gregfromstl gregfromstl merged commit 08cff4b into main May 6, 2025
22 of 24 checks passed
@gregfromstl gregfromstl deleted the greg/tool-4381-add-chain-endpoint branch May 6, 2025 06:47
@joaquim-verges joaquim-verges mentioned this pull request May 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

packages SDK Involves changes to the thirdweb SDK

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants